import Vue from "vue";
import VueRouter from "vue-router";
import Main from "@/views/Main.vue";
import Login from "@/views/LoginOne.vue";
Vue.use(VueRouter)

const router = new VueRouter({
    routes: [
        {
            path: "/",
            component: Main,
            redirect: "/home",
            name: 'main',
            children: []
        }, {
            path: '/login',
            component: Login,
            name: 'login'
        }

    ]
})

export default router
